package com.utooo.enums;

public enum ApiEnum {
    // token
    GET_TOKEN("GET", "/oauth2/client_token", "获取Token", "code", "200", "client_token"),

    // 商品
    SUPPLIER_ADD_EDIT("POST", "/cx/goods/supplier/srm/addOrEdit", "srm同步初心供应商信息", "Code", "200", "data"),
    CATEGORY_ADD_EDIT("POST", "/cx/goods/category/srm/addOrEdit", "srm同步初心分类", "Code", "200", "data"),
    PROPERTY_ADD_EDIT("POST", "/cx/goods/property/srm/addOrEdit", "srm同步初心属性", "Code", "200", "data"),
    SPU_ADD_EDIT("POST", "/cx/goods/spu/srm/addOrEdit", "srm同步初心商品spu", "Code", "200", "data"),
    SKU_ADD_EDIT("POST", "/cx/goods/sku/srm/addOrEdit", "srm同步初心商品sku", "Code", "200", "data"),
    ;

    private final String method; // 请求方式
    private final String url; // 接口URL
    private final String description; // 接口描述
    private final String statusKey; // 接口状态码
    private final String statusValue; // 接口状态码值
    private final String dataKey; // 接口状态码值

    ApiEnum(String method, String url, String description, String statusCode, String statusValue, String dataKey) {
        this.method = method;
        this.url = url;
        this.description = description;
        this.statusKey = statusCode;
        this.statusValue = statusValue;
        this.dataKey = dataKey;
    }

    public String getMethod() {
        return method;
    }

    public String getUrl() {
        return url;
    }

    public String getDescription() {
        return description;
    }

    public String getStatusKey() {
        return statusKey;
    }

    public String getStatusValue() {
        return statusValue;
    }

    public String getDataKey() {
        return dataKey;
    }
}